 #{extends 'frameHome.html' /} #{set title:'TopicIdeas' /}
 #{set 'moreStyles'}
<link rel="stylesheet" href="@{'/public/stylesheets/forms.css'}">

<link rel="stylesheet" href="@{'/public/stylesheets/css3buttons.css'}">
#{/set}

<script type="text/javascript">
	$(document).ready(
			function() {}
				$('.left, .content input, .content textarea, .content select')
						.focus(function() {
							$(this).parents('.row').addClass("over");
						}).blur(function() {
							$(this).parents('.row').removeClass("over");
						});
			});
</script>

<div id=right>

	<script type="text/javascript">
		function createTarget(t) {
			window.open("", t, "width=600,height=550");
			return true;
		}
	</script>

	<head>
<link rel="stylesheet" href="@{'/public/stylesheets/forms.css'}">

<link rel="stylesheet" href="@{'/public/stylesheets/main.css'}">

<link rel="stylesheet" href="@{'/public/stylesheets/css3buttons.css'}">

	</head>

	<div id=main>


		<div id="Topic-Ideas">
			<h1>Topic Ideas ready for execution</h1>


			<form action="@{Topics.selectAllTopicIdeaExecuted() }">
				#{if idea}#{list items:idea, as:'idea'} #{if idea.hide==false}
				<li>
			<a href="@{PostingIdea.ShowIdea(idea.id)}"><input type="Radio" name="box" value=${idea}/>${idea.title}</a> .... Posted By: ${idea.author.name} <br/>
			
			
			</li>#{/if}#{/list}
				
			#{if user.email==topic.author.email || user.email==topic.entity.organization.lead.email}
			
			
			<input
			type="submit" value="Execute Idea"onclick="JavaScript:alert('are you sure you want to execute Idea and close Topic??!')" />
		
			
			#{/if}#{else}no permissions allowed for#{/else} #{/if}
			#{else} Sorry! This Topic has no Ideas
			
			 #{/else}
			
			 
		</form>
			

		</div>
	</div>